package com.xml.domain;

import java.util.Date;

/**
 * Borrow entity. @author MyEclipse Persistence Tools
 */

public class Borrow implements java.io.Serializable {

	// Fields

	private Integer id;
	private Reader reader;
	private Book book;
	private Date borrowTime;
	private Date backTime;
	private Integer numOfRenew;

	// Constructors

	/** default constructor */
	public Borrow() {
	}

	/** minimal constructor */
	public Borrow(Reader reader, Book book, Date borrowTime, Integer numOfRenew) {
		this.reader = reader;
		this.book = book;
		this.borrowTime = borrowTime;
		this.numOfRenew = numOfRenew;
	}

	/** full constructor */
	public Borrow(Reader reader, Book book, Date borrowTime, Date backTime, Integer numOfRenew) {
		this.reader = reader;
		this.book = book;
		this.borrowTime = borrowTime;
		this.backTime = backTime;
		this.numOfRenew = numOfRenew;
	}

	// Property accessors

	public Integer getId() {
		return this.id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public Reader getReader() {
		return this.reader;
	}

	public void setReader(Reader reader) {
		this.reader = reader;
	}

	public Book getBook() {
		return this.book;
	}

	public void setBook(Book book) {
		this.book = book;
	}

	public Date getBorrowTime() {
		return this.borrowTime;
	}

	public void setBorrowTime(Date borrowTime) {
		this.borrowTime = borrowTime;
	}

	public Date getBackTime() {
		return this.backTime;
	}

	public void setBackTime(Date backTime) {
		this.backTime = backTime;
	}

	public Integer getNumOfRenew() {
		return this.numOfRenew;
	}

	public void setNumOfRenew(Integer numOfRenew) {
		this.numOfRenew = numOfRenew;
	}

	
	

}